package com.example.nep.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.example.nep.model.GridCity;
import com.example.nep.dao.GridCityMapper;
import com.example.nep.service.IGridCityService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author han
 * @since 2024-04-10
 */
@Service
public class GridCityServiceImpl extends ServiceImpl<GridCityMapper, GridCity> implements IGridCityService {

    @Override
    public List<GridCity> findCityAll(Integer id) {
        LambdaQueryWrapper<GridCity> wrapper=new LambdaQueryWrapper<>();
        wrapper.eq(GridCity::getProvinceId,id);
        List<GridCity> list = list(wrapper);
        return list;
    }
}
